<?php
 /**
 * Example Application

 * @package Example-application
 */

defined('MDIR') or define('MDIR',dirname(__FILE__).'/smarty/');

require_once(MDIR.'libs/Smarty.class.php');

$smarty = new Smarty;

$smarty->setTemplateDir(APPPATH.'views/smarty');
$smarty->setCompileDir(MDIR.'templates_c');
$smarty->setCacheDir(MDIR.'cache');
$smarty->setConfigDir(MDIR.'configs');

//$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 3600;

//$smarty->clearAllCache();

return $smarty;
//$smarty->display('index.tpl');
?>
